package com.objcat.api.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author objcat
 * @version 1.0
 * @description ApiController
 * @date 2023/9/22 16:42
 */
@RestController
public class ApiController {
    @GetMapping("testGet")
    public String testGet(String name) {
        return "this is get " + name;
    }

    @PostMapping("testPost")
    public String testPost(String name) {
        return "this is post " + name;
    }
}
